import { locale } from "core-js"

var auth = {
    getAuthorization() {
        return localStorage.getItem('Authorization')  //localStorage 是用来存储数据
    },
    setAuthorization(Authorization) {
        localStorage.setItem('Authorization', Authorization)
    }
}

export default {
    install: function (vue) {
        vue.prototype.$auth = auth
    }
}